require 'rubygems'
require 'hpricot'

module ProductsHelper
  def format_desc(desc)
    if desc && !desc.blank?
      doc = Hpricot(desc)
      return_string = truncate(doc.inner_text,100)
      return_string.gsub!("?","")
      return return_string
    else
      ""
    end
  end
end
